package net.zjitc.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

/**
 * Created by guo on 2017/11/27.
 */
public class UUIDUtils {
    public static String getUUID(){
        return  UUID.randomUUID().toString().replace("-","");
    }


    public static String dateToString(Date date)
    {
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sf.format(date);
    }
}
